<template>
	<view class="fullPage bf">
		<view class="h20 bgf5"></view>
		<view class="container plr24">
			<view class='ptb70 flex_aj'>
				<view>
					<image :src="info.logoUrl|formatImg" style='width:258rpx;' mode="widthFix" class='border-r1 logo' />
				</view>
			</view>
			<view>
				<u-parse :html="pageInfo" :show-with-animation="true"></u-parse>
			</view>
			<view class="ptb30">
				<view>
					<text>客服电话:</text>
					<text class="ml10" @click="call(info.tel)">{{info.tel}}</text>
				</view>
				<view class="mt10">
					<text>加盟电话:</text>
					<text class="ml10" @click="call(info.phone)">{{info.phone}}</text>
				</view>
				<view class="mt10">
					<text>版本号:</text>
					<text class="ml10">{{info.sysVersion}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "index",
		data() {
			return {
				pageInfo: '',
				info:{}
			}
		},
		onLoad() {

		},
		onShow() {
			this.$http({
				url:'/api/sysParameter/getSysParam',
				data:{
					systemType:1
				}
			}).then(res => {
				console.log(res);
				this.info = JSON.parse(res.data.sysParameter.systemValue);
				console.log(this.info);
				//this.pageInfo = res.data.sysParameter.systemValue;
			});
			this.$http({
				url:'/api/sysParameter/getSysParam',
				data:{
					systemType:9
				}
			}).then(res => {
				console.log(res);
				this.pageInfo = res.data.sysParameter.systemValue;
			});
		},
		methods: {

		}
	}
</script>

<style scoped lang='scss'>

</style>
